FROM python:3.8-slim
WORKDIR /app
ADD ./src /app/src
ADD main.py /app/app.py
ADD ./requirements.txt /app/requirements.txt
RUN pip install -r requirements.txt

# 设置环境变量
ENV DINGDING_APP_KEY=""
ENV DINGDING_APP_SECRET=""
ENV DINGDING_MOBILE=""
ENV IMAP_HOST=""
ENV EMAIL_USERNAME=""
ENV EMAIL_PASSWORD=""
ENV TICKET_PATTERN=""
ENV ADVANCE_REMIND_MINUTES=80

CMD ["python", "main.py"]